
import { getDict } from '@/utils'
import { transferLabelAndValue } from '@/utils/pre-sale'
const dict = getDict([
    '移库类型'
])
console.log(dict)
export const rulesForm = [
   
    {
        "type": "select", "field": "storeId", "value": "",
        title: "申请门店:",
        props: {
            placeholder: "请选择门店",
            clearable:true
        },
        col: {

            span: 6,
            labelWidth: '140px'
        },
        options: [],
        class: "w-100",
        emit:['change', 'blur'],
        emitPrefix:'storage',
        validate: [{ required: true, message: '请选择门店', trigger: ['blur', 'change'], },]

    },
    {
        "type": "select", "field": "typeDictId", "value": "",
        title: "移库类型:",
        props: {
            placeholder: "请选择移库类型",
            clearable:true
        },
        col: {

            span: 6,
            labelWidth: '140px'
        },
        options: transferLabelAndValue(dict['移库类型']),
        class: "w-100",
        validate: [{ required: true, message: '请选择移库类型', trigger: ['blur', 'change'], },]

    },
    {
        "type": "select", "field": "storageId", "value": "",
        title: "目标仓库:",
        props: {
            placeholder: "请选择目标仓库",
            clearable:true
        },
        col: {

            span: 6,
            labelWidth: '140px'
        },
        options: [],
        emit:['change', 'blur'],
        emitPrefix:'storage-site',
        class: "w-100",
        validate: [{ required: true, message: '请选择目标仓库', trigger: ['blur', 'change'], },]

    },
    {
        "type": "select", "field": "storageSiteId", "value": "",
        title: "目标仓位:",
        props: {
          filterable: true,
            placeholder: "请选择目标仓位",
            clearable:true
        },
        col: {

            span: 6,
            labelWidth: '140px'
        },
        options: [],
        validate: [{ required: true, message: '请选择目标仓位', trigger: ['blur', 'change'], },],
      
        class: "w-100",

    },
   
   
    {
        "type": "input", "field": "remark", "value": "",
        title: "备注:",
        props: {
            placeholder: "备注",
            type:'textarea',
            rows:3
        },
        col: {
            span: 24,
            labelWidth: '140px'
        },
        class: "w-100",

    },

   






]
